package com.binarycat.dynamiclimit.metric;

import java.util.concurrent.TimeUnit;

import com.binarycat.util.arithmetic.SlidingWindow;
import com.codahale.metrics.Metric;

/**
 * 存储指定时间窗口内的度量数据
 * 
 * @author jinbaoji
 * @date 2018/08/09
 */
public class SlidingHistory extends SlidingWindow implements Metric {
    public SlidingHistory() {
        super();
    }

    public SlidingHistory(long timespan, TimeUnit unit) {
        super(timespan, unit);
    }
    public SlidingHistory(long timespan) {
        super(timespan, TimeUnit.SECONDS);
    }
}
